package com.qkl.xiatang.app.dto.mqtt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.gson.annotations.SerializedName;
import com.qkl.xiatang.app.dto.MqttDTO;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@ToString
@Data
@TableName(value = "device_data")
public class DeviceData extends MqttDTO {

    @TableId(type= IdType.AUTO)
    private Long id;

    @SerializedName("BatteryVoltage")
    private String batteryVoltage;

    @SerializedName("pH")
    private String ph;

    @SerializedName("Salinity")
    private String salinity;

    @SerializedName("WaterTemp")
    private String waterTemp;

    @SerializedName("DO")
    private String do1;

    @SerializedName("NH3-N02")
    private String nh3No2;

    @SerializedName("NO2-")
    private String no2;

    private Date createTime;

}